package com.zbmy.plugin.im.server.core.back;

import com.zbmy.plugin.im.server.core.back.factory.ProcessorFactory;
import com.zbmy.plugin.im.server.core.back.processor.MessageProcessor;
import com.zbmy.plugin.im.server.core.protocol.MessageHolder;

public class ProcessorProxy {
	public static void excute(MessageHolder messageHolder){
		if(messageHolder == null){
			return;
		}
		MessageProcessor messageProcessor = ProcessorFactory.getProcessor(messageHolder.getType());
		if(messageProcessor != null){
			messageProcessor.excute(messageHolder);
		}
	}
}
